package com.ynu.appuser.domain.appuser;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医生给app用户打的评分对象 md_user_score
 *
 * @author ruoyi
 * @date 2022-12-09
 */
public class MdUserScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 打分人 */
    @Excel(name = "打分人")
    private Long creator;

    /** 分数所依据的数据的时间范围，开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "分数所依据的数据的时间范围，开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dataStartTime;

    /** 分数所依据的数据的时间范围，结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "分数所依据的数据的时间范围，结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dataEndTime;

    /** 分数 */
    @Excel(name = "分数")
    private Float score;

    /** app用户的id */
    @Excel(name = "app用户的id")
    private Long mdUserId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setDataStartTime(Date dataStartTime)
    {
        this.dataStartTime = dataStartTime;
    }

    public Date getDataStartTime()
    {
        return dataStartTime;
    }
    public void setDataEndTime(Date dataEndTime)
    {
        this.dataEndTime = dataEndTime;
    }

    public Date getDataEndTime()
    {
        return dataEndTime;
    }
    public void setScore(Float score)
    {
        this.score = score;
    }

    public Float getScore()
    {
        return score;
    }
    public void setMdUserId(Long mdUserId)
    {
        this.mdUserId = mdUserId;
    }

    public Long getMdUserId()
    {
        return mdUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("dataStartTime", getDataStartTime())
            .append("dataEndTime", getDataEndTime())
            .append("score", getScore())
            .append("mdUserId", getMdUserId())
            .append("remark", getRemark())
            .toString();
    }
}
